Skip to content

Conversation

jreback
Copy link
Contributor

@jreback jreback commented Jan 3, 2016

xref #10000

@jreback jreback added Enhancement Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Jan 3, 2016
@jreback jreback added this to the 0.18.0 milestone Jan 3, 2016
@jreback
Copy link
Contributor Author

jreback commented Jan 3, 2016

cc @shoyer
cc @MaximilianR

in preparation for deprecation of ndim > 2.

@jreback jreback force-pushed the xray branch 3 times, most recently from 73dbc03 to 2463456 Compare January 4, 2016 02:49
coords = [ (a,self._get_axis(a)) for a in self._AXIS_ORDERS ]
return xray.DataArray(self,
coords=coords,
).to_dataset()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this makes sense. I would simply return an xray.DataArray here (no to_dataset), since that is probably what users want if they are using panels, etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, isn't by definition a DataArray single dtype? yes Panel are usually single dtypes, but can have multiple. I think also more consistent to always return a Dataset, yes?

however in either case these don't look dtype segregated (e.g. compared to say the converted DataFrame), am I doing something wrong?

@jreback jreback changed the title [WIP] ENH: add to_xray conversion method [WIP] ENH: add to_xarray conversion method Jan 6, 2016
@jreback jreback closed this Jan 6, 2016
jreback added a commit that referenced this pull request Feb 10, 2016
supersedes #11950
xref #10000

Author: Jeff Reback <[email protected]>

Closes #11972 from jreback/xarray and squashes the following commits:

85de0b7 [Jeff Reback] ENH: add to_xarray conversion method
cldy pushed a commit to cldy/pandas that referenced this pull request Feb 11, 2016
supersedes pandas-dev#11950
xref pandas-dev#10000

Author: Jeff Reback <[email protected]>

Closes pandas-dev#11972 from jreback/xarray and squashes the following commits:

85de0b7 [Jeff Reback] ENH: add to_xarray conversion method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants